﻿@model IEnumerable<MVC3Razor.Models.UserModel>
@{
    ViewBag.Title = "Lista de Usuarios";     
}
<h2>
    Lista de Usuarios</h2>
<p>
    @Html.ActionLink("Nuevo Usuario", "CreateUser")
</p>
<table>
    <tr>
        <th>
        </th>
        <th>
            Usuario
        </th>
        <th>
            Nombre
        </th>
        <th>
            Apellido
        </th>
        <th>
            Provincia
        </th>
    </tr>
    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.ActionLink("Editar", "EditUser", new { id = item.UserName }) |
                @Html.ActionLink("Detalles", "DetailsUser", new { id = item.UserName }) |
                @Html.ActionLink("Eliminar", "DeleteUser", new { id = item.UserName })
            </td>
            <td>
                @item.UserName
            </td>
            <td>
                @item.FirstName
            </td>
            <td>
                @item.LastName
            </td>
            <td>
                @item.City
            </td>
        </tr>
    }
</table>
